package com.graduate.game.user.service;

import com.github.pagehelper.PageInfo;
import com.graduate.game.user.pojo.userdata;
import org.apache.ibatis.annotations.Param;

import javax.swing.text.StyledEditorKit;
import java.util.List;
import java.util.Map;

public interface UserdataService {
    //获取当前用户的金币和经验值
    userdata getOneUserdata(String username);

    //排行榜
    //金币排行榜
    List<userdata> goldRank();
    //校力值排行榜
    List<userdata> experienceRank();

    //分页处理
    List<userdata> findAllUserByPageS(Map<String,Object> data);
    List<userdata> experienceRankByPageS(Map<String,Object> data);

    //更新金币
    public boolean updateGoldRank(userdata userdate);
    //更新经验值
    public boolean updateEx(userdata userdate);

}
